<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        include 'data_access.php';
        include 'person.php';
       include 'admin.php';
       include 'building.php';
       
       $admin=new admin();
       $building=new building();
       $data=new database_access();
       $data->connect();
       
      
       for($i=1;$i<=10;$i++){
           
           $capacity=$_POST["cabB".$i];
           $building->set_id($i);
           $building->set_capacity($capacity);
           $periority=$_POST["proB".$i]; 
      
       $building->set_periority($periority);
       $admin->determine_piriorty($building);
       $admin->determine_capacity($building);
       
      
       }
       
          
        
        ?>
    </body>
</html>
